<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="net.jdiy.core.*" %>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.Map"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JDiy-2.2</title>
<link href="../JDiy_bin/img/public.css" rel="stylesheet" type="text/css" />
<link href="../JDiy_bin/skins/white/css_right.css" rel="stylesheet" type="text/css" />
<link rel="Bookmark" href="../JDiy_bin/img/favicon.ico" /><link rel="Shortcut Icon" href="../JDiy_bin/img/favicon.ico" />
<script type="text/ecmascript" src="../JDiy_bin/js/class/JSer.js"></script>
<script type="text/javascript" src="../JDiy_bin/js/class/jc.js"></script>
<script type="text/javascript" src="../JDiy_bin/js/evt/ee.js"></script>
<script type="text/ecmascript" src="../JDiy_bin/js/evt/ls.js"></script><script type="text/ecmascript" src="../JDiy_bin/js/my97/WdatePicker.js"></script><script type="text/ecmascript">
function listGo(url,id){JSer.url(url).set('id',id).go();}
function listOp(url,id,w,h){JSer.url(url).set('id',id).open({target:'list'+id,width:w,height:h});}
</script></head>
<body>

<table border="0" cellpadding="0" cellspacing="0" class="Max">
   <tr>
      <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="cTit">
         <tr>
            <td class="L">&nbsp;</td>
<td class="C">:::::: 角色管理 ::::::</td>            <td class="R">&nbsp;</td>
         </tr>
      </table></td>
</tr>
<tr>
<td class="TB"><form action="~.jd?~=@List" method="get"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr class="CT">
<td align="center" height="25"><input name="mmId" value="z0000000m0" type="hidden" /><input name="~" value="@List" type="hidden" /><input name="sortField" value="sort" type="hidden" /><input name="sortType" value="ASC" type="hidden" /><nobr>排序索引：从<input type="text" id="sort_b" name="sort_b" value="" class="in" style="width:64px" />至<input type="text" id="sort_e" name="sort_e" value="" class="in" style="width:64px" /></nobr>　

<nobr>角色名称：<input type="text" id="t0" name="t0" value="" class="in" style="width:100px" /></nobr>　

<nobr>简要备注：<input type="text" id="t1" name="t1" value="" class="in" style="width:100px" /></nobr>　

<nobr><input type="submit" value=" 搜 索 ! " id="shbtn" class="btn" /></nobr>
　
<nobr></nobr></td>
</tr>
</table></form>
<form method="post" id="zltForm" name="zltForm">
<table width="100%" border="0" cellspacing="0">
<tr class="T">
<td style="display:none">&nbsp;</td>
<td nowrap="nowrap" class="sortTh" field="sort">排序索引&nbsp;<img src="../JDiy_bin/img/sort_a.gif" alt="当前排序方式：按此字段升序" align="absmiddle" /></td><td nowrap="nowrap" class="sortTh" field="t0">角色名称</td><td nowrap="nowrap" class="sortTh" field="t1">简要备注</td></tr>
<%
    //Web环境下用App类来获取JDiy上下文
    App app = App.get();
    //下面获取默认的数据库操作DAO
    Dao dao = app.getDao();
    
    //下面获取post/get过来的查询参数(即取得当前页)，如果取不到正确的页码信息，则默认为第1页
    int currentPage = app.getInt("page",1); 
    //下面通过原生SQL语句创建查询
    Ls ls = dao.ls("SELECT * FROM jdiy_sys WHERE frame LIKE '%.z0000000s0.%' AND id<>'z0000000s0' AND isc=1 and t2=0 ORDER BY sort ASC, dt2 DESC", 20, currentPage);
 
    //下面，我们在页面上循环输出内容：
    for(Rs rs:ls.getItems()){

%>

<tr align="center" class="C item" title="单击选中/双击查看或编辑" href="roleAdd.jsp?opt=edit&id=<%= rs.get("id")  %>">
<td align="center" style="display:none">
<input name="idItem" type="checkbox" class="inChk" value="<%= rs.get("id")  %>" sub="2" /></td>
<td width="48" class="sortTD"><div id="sort__<%= rs.get("id")  %> class="sortt" title="单击此处修改排序..">100</div>
<input class="sorts" id="sorts_<%= rs.get("id")  %>" name="sort_<%= rs.get("id")  %>" value="100" index="2" title="敲回车(Enter)更新排序" type="text" /></td>
<td align="left">&nbsp;<%= rs.get("t0")  %></td>
<td><%= rs.get("t1")  %></td>
</tr>
<%} %>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="1">
<tr class="B">
<td align="center" style="line-height:20px" class="B">
<input id="ldAllowed" name="ldAllowed" value="0" type="hidden" /><input id="isc" value="1" name="isc" type="hidden" />

<input type="hidden" name="isJDiyTable" id="isJDiyTable" value="1" /><input type="hidden" name="DATA_PK" id="DATA_PK" value="id" />
<input name="ids" id="ids" type="hidden" value="''" />
<input name="__JDiy_Table__" id="__JDiy_Table__" type="hidden" value="jdiy_sys" />
<input name="__JDiy_Param__" id="__JDiy_Param__" type="hidden" value="" />

　<label><input type="checkbox" style="border:0px;" id="JD_SelectAll"/>全选</label> - <label id="JD_Reverse">反选</label>　

　<input name="JD_Ctrl" id="JD_Sort" type="button" disabled="disabled" class="btn" value="更新排序" title="更新选中的项目的排序索引" />

　<input name="JD_Ctrl" id="JD_Delete" type="button" disabled="disabled" class="btn" value="删除所选" title="删除选中的项目" />

<nobr>共<%=ls.getPageCount()%>页(<%=ls.getRowCount()%>条记录)　当前第<span class="txtA"><%=currentPage%></span>页(20条记录每页)　<a href="?page=1">首页</a> <a href="?page=<%=currentPage-1%>">上一页</a>　<a href="?page=<%=currentPage+1%>">下一页</a>　<a href="?page=<%=ls.getPageCount()%>">尾页</a>　转到第<select onchange="JSer.url().set('page', this.value).go()"><script type="text/ecmascript">var JD_PAGE=[];for(var i=1;i<=1;i++){JD_PAGE.push('<option value="'+i+'"');if(i==1)JD_PAGE.push(' selected="selected"');JD_PAGE.push('>'+i+'</option>');} document.write(JD_PAGE.join(''));</script></select>
页</nobr></td>
</tr>
</table>
</form></td>
</tr>
</table>
<br /><div style="text-align:center;font-size:10px">Copyright&copy; <strong style="color:#040;cursor:pointer" onclick="parent.JD_Dialog({tit:'关于...',width:444,height:260,href:'~.jd?~=about@Base'});" title="关于 JDiy"><i>JDiy-2.2</i></strong></div>
</body></html>


<!--**********************************************************************

                      ★ JDiy建站平台 ★　

　版权所有：　                                        
　              JDiy网页编程技术站 http://jdiy.net 
                 ====================================
　CopyRight (C)
                                                          
 【全程开发】：  郑连涛（网上昵称：子秋、Folier   QQ:39886616）

***********************************************************************-->
